package com.ruoyi.system.https.vo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@JacksonXmlRootElement(localName = "soapenv:Envelope")
public class ZMES_GET_PWOH_REQUEST {
    // 根元素类
    @JacksonXmlProperty(isAttribute = true,localName = "xmlns:soapenv")
    private  String soapenv="http://schemas.xmlsoap.org/soap/envelope/";
    @JacksonXmlProperty(isAttribute = true,localName = "xmlns:urn")
    private  String urn="urn:sap-com:document:sap:soap:functions:mc-style";
    @JacksonXmlProperty(localName = "soapenv:Header")
    private String header;
    @JacksonXmlProperty(localName = "soapenv:Body")
    private SoapBody body;

    // Body 元素类
    @Data
    public static class SoapBody {
        @JacksonXmlProperty(localName = "urn:ZmesGetPwoh")
        private ZmesGetPwoh zmesGetPwoh;

        public void setZmesGetPwoi(ZmesGetPwoh zmesGetPwoh) {
            this.zmesGetPwoh = zmesGetPwoh;
        }
        public ZmesGetPwoh getZmesGetPwoh() {
            return zmesGetPwoh;
        }
    }
    @Data
    public static class ZmesGetPwoh{
        @JacksonXmlProperty(localName = "OrderStatus")
        private  String orderStatus;
        @JacksonXmlProperty(localName = "Plant")
        private  String plant;
        @JacksonXmlProperty(localName = "StartDate")
        private String startDate;
        @JacksonXmlProperty(localName = "Pwoh")
        private Pwoh pwoh;
        public void setStartDate(String startDate) {
            this.startDate = startDate;
        }
        public String getStartDate() {
            return startDate;
        }
        public void setOrderStatus(String orderStatus) {
            this. orderStatus = orderStatus;
        }
        public String getOrderStatus() {
            return orderStatus;
        }
        public void setPlant(String plant) {
            this.plant=plant;
        }
        public String getPlant() {
            return plant;
        }
        public void setPwoh(Pwoh pwoh)  {
            this.pwoh = pwoh;
        }
        public Pwoh getPwoh() {
            return pwoh;
        }
    }
    @Data
    public static class Pwoh {
        @JacksonXmlProperty(localName = "item")
        private Item item;
        public void setItem(Item item)  {
            this.item = item;
        }
        public Item getItem() {
            return item;
        }
    }
    @Data
    public static class Item{
        @JacksonXmlProperty(localName = "PwoNo")
        private String PwoNo;
        @JacksonXmlProperty(localName = "OrderType")
        private String OrderType;
        @JacksonXmlProperty(localName = "Material")
        private String Material;
        @JacksonXmlProperty(localName = "Description")
        private String Description;
        @JacksonXmlProperty(localName = "Batch")
        private String Batch;
        @JacksonXmlProperty(localName = "Quantity")
        private String Quantity;
        @JacksonXmlProperty(localName = "StartDate")
        private String StartDate;
        @JacksonXmlProperty(localName = "EndDate")
        private String EndDate;
        @JacksonXmlProperty(localName = "ProdVer")
        private String ProdVer;
        @JacksonXmlProperty(localName = "RecipeNo")
        private String RecipeNo;
        @JacksonXmlProperty(localName = "AltBom")
        private String AltBom;
        @JacksonXmlProperty(localName = "LastBatchNo")
        private String LastBatchNo;
        @JacksonXmlProperty(localName = "LastBatchDate")
        private String LastBatchDate;
        @JacksonXmlProperty(localName = "LastProdVer")
        private String LastProdVer;
        @JacksonXmlProperty(localName = "Label")
        private String Label;
        public Item() {
            this.PwoNo = "";
            this.OrderType = "";
            this.Material = "";
            this.Description = "";
            this.Batch = "";
            this.Quantity = "";
            this.StartDate = "";
            this.EndDate = "";
            this.ProdVer = "";
            this.RecipeNo = "";
            this.AltBom = "";
            this.LastBatchNo = "";
            this.LastBatchDate = "";
            this.LastProdVer = "";
            this.Label = "";
        }
    }

    public String getSoapenv() {
        return soapenv;
    }

    public void setSoapenv(String soapenv) {
        this.soapenv = soapenv;
    }

    public String getUrn() {
        return urn;
    }

    public void setUrn(String urn) {
        this.urn = urn;
    }

    public String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        this.header = header;
    }

    public SoapBody getBody() {
        return body;
    }

    public void setBody(SoapBody body) {
        this.body = body;
    }
}
